package inheritDemo1;

public class TestMain {
    public static void main(String[] args) {
        Manager m = new Manager("001","张三",10000,100000);
        m.eat();
        m.work();
        Cooker c = new Cooker("002","李四",8000);
        c.setId("003");
        c.setName("王五");
        c.setSalary(9000);
        c.printInfo();
        c.work();
    }
}
